FROM ubuntu:20.04

# 设置时区
RUN echo "Asia/Shanghai" > /etc/timezone

# Install Java.
RUN \
  apt-get update -y && \
  apt-get install -y openjdk-11-jre

# 定义变量
ENV work_dir=/mnt/app/

# JAVA_HOME
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
ENV JAVA_OPTS "-server -Xms128m -Xmx1024m"

# Define default command.
CMD ["bash"]
